package com.permission.constant;

import lombok.Getter;

/**
 * Created by Administrator on 2018/4/2
 */
@Getter
public enum ResultEnum {

    PARAM_ERROR(1, "parameters error"),

    ADD_ERROR(2, "add error"),

    UPDATE_ERROR(3, "update error"),

    DELETE_ERROR(4, "delete error"),

    UNKNOWN_ERROR(-2, "unknown error"),

    SYSTEM_ERROR(-1, "system error"),

    SUCCESS(0, "success"),
    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
